home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 521 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: watnews.watson.ibm.com!kgold
  2. From: kgold@watson.ibm.com (K Goldman)
  3. Newsgroups: comp.sys.m68k
  4. Subject: Re: 68k memory test in assembly
  5. Date: 2 Apr 1996 18:17:44 GMT
  6. Organization: IBM T.J. Watson Research Center
  7. Distribution: ibm
  8. Message-ID: <4jrr08$cnp@watnews1.watson.ibm.com>
  9. References: <jharkinsDp7JMt.DCx@netcom.com>
  10. NNTP-Posting-Host: ovni.watson.ibm.com
  11.  
  12. jharkins@netcom.com (Jim Harkins) writes:
  13. |> I need a RAM test for a 68360.  It needs to be in assembly as it will 
  14. |> run before the C environment is started.  Does anyone have one they can 
  15. |> send me, or am I going to need to convert an 80x86 ramtest?
  16. |> 
  17.  
  18. 1 - I can first tell you that all my 68360 diagnostics are in C.  That
  19. includes ROM, RAM, and peripherals.  There's very little (several
  20. registers, chips selects, and the stack pointer) that I set up in
  21. assembler.
  22.  
  23. 2 - The RAM test I usually use is to run two write-read-verify loops.
  24.  
  25. The first starts at adrs 0 (in the RAM under test) and data 0
  26. and writes incrementing data to incrementing addresses.  After
  27. writes, it reads to verify.
  28.  
  29. The next test does the same thing but starts with data all ones and
  30. decrements.
  31.  
  32. This is simple to code and fast to run.  Each loop is about 5 lines of
  33. C code.  It catches all stuck address and data lines, all shorted
  34. address lines, many shorted data lines, and writes all RAM bits to
  35. both 0 and 1.
  36.  
  37. You can catch the rest of the shorted data lines if you inc/dec
  38. by the constant 1 + (1<<n) where n is the number of address bits.
  39.  
  40. Don't forget to service the watchdog timer occasionally!
  41.  
  42. -- 
  43. Ken Goldman   kgold@watson.ibm.com   914-784-7396
  44.